package com.lzj.entity;

/**
 * <p>
 *
 * </p>
 *
 * @autor:lzj
 * @date:2021/12/5
 */
public class Sku {//商品库
    private int id;
    private String url;//图片url
    private String name;//商品名称
    private double price;//商品价格
    private String specification;//商品规格
    private int count;//商品库存

    public Sku() {
    }

    public Sku(int id, String url, String name, double price, String specification, int count) {
        this.id = id;
        this.url = url;
        this.name = name;
        this.price = price;
        this.specification = specification;
        this.count = count;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getSpecification() {
        return specification;
    }

    public void setSpecification(String specification) {
        this.specification = specification;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Sku{" +
                "id=" + id +
                ", url='" + url + '\'' +
                ", name='" + name + '\'' +
                ", price=" + price +
                ", specification='" + specification + '\'' +
                ", count=" + count +
                '}';
    }
}
